﻿using Microsoft.EntityFrameworkCore;
using System;
using Volo.Abp.MultiTenancy;
using Xms.Abp.Data;
using Xms.Abp.Storage;

namespace TenantManagement;

[IgnoreMultiTenancy]
[DynamicConnStringName(typeof(TenantManagementDbProperties), nameof(TenantManagementDbProperties.ConnStringName))]
public class TenantManagementStorage : XmsStorage<TenantManagementStorage>, ITenantManagementStorage
{
    public DbSet<Tenant> Tenants { get; set; }

    public DbSet<TenantConnString> TenantConnStrings { get; set; }

    public DbSet<TenantDomain> TenantDomains { get; set; }

    public TenantManagementStorage(DbContextOptions<TenantManagementStorage> options, IServiceProvider serviceProvider) : base(options, serviceProvider)
    {
    }
}
